package com.mycompany.api;
import android.app.*;
import android.os.*;
import android.widget.*;
import android.content.*;
import java.util.*;
import android.view.*;

public class Re_act extends Activity
{
	private TextView re_result;
	private LinearLayout head;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.reply_layout);
		re_result=findViewById(R.id.re_result);
		head=findViewById(R.id.re_head);
		Intent intent=getIntent();
		Bundle bundle=intent.getExtras();
		String result=bundle.getString("data");
		bundle.remove("data");
		for(String key:bundle.keySet()){
			LayoutInflater inflater=getLayoutInflater();
			View v=inflater.inflate(R.layout.re_head_layout,null);
			TextView k=v.findViewById(R.id.key);
			TextView va=v.findViewById(R.id.value);
			k.setText(key);
			va.setText(bundle.getString(key));
			head.addView(v);
		}
		
		
		re_result.setText(result);
	}
	
}
